package com.platform.cdcs.model;

import com.trueway.app.uilib.tool.Utils;

/**
 * Created by holytang on 2017/11/20.
 */
public class ReportInfo {

    private String fileName;
    private String id;
    private String fillMan;
    private String reportSource;
    private String reportDate;
    private String handleTime;
    //0处理中 1处理成功 99处理失败
    private String status;
    private int successNum;
    private int failNum;
    private int handled;

    public int getHandled() {
        return handled;
    }

    public void setHandled(int handled) {
        this.handled = handled;
    }

    public int getSuccessNum() {
        return successNum;
    }

    public void setSuccessNum(int successNum) {
        this.successNum = successNum;
    }

    public int getFailNum() {
        return failNum;
    }

    public void setFailNum(int failNum) {
        this.failNum = failNum;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFillMan() {
        return fillMan;
    }

    public void setFillMan(String fillMan) {
        this.fillMan = fillMan;
    }

    public String getReportSource() {
        return reportSource;
    }

    public void setReportSource(String reportSource) {
        this.reportSource = reportSource;
    }

    public String getReportDate() {
        if(reportDate.length()>19){
            reportDate=reportDate.substring(0,19);
        }
        return reportDate;
    }

    public void setReportDate(String reportDate) {
        this.reportDate = reportDate;
    }

    public String getHandleTime() {
        return handleTime;
    }

    public void setHandleTime(String handleTime) {
        this.handleTime = handleTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatusText() {
        if ("0".equals(status)) {
            return "处理中";
        } else if ("1".equals(status)) {
            return "处理成功";
        } else {
            return "处理失败";
        }
    }
}
